package org.yoao.crm.business.impl;

import org.yoao.crm.acl.Premission;
import org.yoao.crm.bean.StaticBean;
import org.yoao.crm.business.service.IPremissionService;

/**
 * @author yxwonline.com
 * @description
 * @date 2010-7-22 上午10:33:23 
 */
public class PremissionServiceImpl implements IPremissionService {
	private Premission premission = new Premission();
	
	public boolean check(String relations, String access) {
		return premission.getMenuList(relations, access);
	}

	public boolean isAdmin(String userSno) {
		if(StaticBean.ROLE_ADMIN.equals(userSno))
			return true;
		else return false;
	}
}